package com.mgq.generic;

/**
 * @author MaGuangQi
 * 泛型类
 * 外部使用的泛型类的时候指定的
 * @date 2021-12-24 15:27
 **/
public class GenericClass<T> {

    private T key;

    public GenericClass(T key) {
        this.key = key;
    }

    public T getKey() {
        return key;
    }

    public void setKey(T key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "GenericClass{" +
                "key=" + key +
                '}';
    }
}
